package com.rshang.rsdp.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author zhangjun
 * @since 2017-07-21
 */
@TableName("TB_USER")
public class TbUser extends Model<TbUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value="USER_ID",type=IdType.UUID)
	private String userId;
    /**
     * 用户名
     */
	@TableField("USER_NAME")
	private String userName;
    /**
     * 用户姓名
     */
	@TableField("USER_XM")
	private String userXm;
    /**
     * 用户密码
     */
	@TableField("USER_PASS")
	private String userPass;
    /**
     * 手机号码
     */
	@TableField("USER_PHONE")
	private String userPhone;
    /**
     * email地址
     */
	@TableField("USER_EMAIL")
	private String userEmail;
	
	/**
     * email地址
     */
	@TableField("USER_GH")
	private String userGh;
	
	/**
     * 录入人
     */
	@TableField("LRR")
	private String lrr;
    /**
     * 录入时间
     */
	@TableField("LRSJ")
	private Date lrsj;
	
	/**
     * 录入人
     */
	@TableField("XGR")
	private String xgr;
    /**
     * 修改时间
     */
	@TableField("XGSJ")
	private Date xgsj;
    /**
     * 有效标志 1有效 0无效
     */
	@TableField("YX_BZ")
	private String yxBz;


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserXm() {
		return userXm;
	}

	public void setUserXm(String userXm) {
		this.userXm = userXm;
	}

	public String getUserPass() {
		return userPass;
	}

	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public Date getLrsj() {
		return lrsj;
	}

	public void setLrsj(Date lrsj) {
		this.lrsj = lrsj;
	}

	public Date getXgsj() {
		return xgsj;
	}

	public void setXgsj(Date xgsj) {
		this.xgsj = xgsj;
	}

	public String getYxBz() {
		return yxBz;
	}

	public void setYxBz(String yxBz) {
		this.yxBz = yxBz;
	}
	
	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

	public String getLrr() {
		return lrr;
	}

	public void setLrr(String lrr) {
		this.lrr = lrr;
	}

	public String getXgr() {
		return xgr;
	}

	public void setXgr(String xgr) {
		this.xgr = xgr;
	}

	public String getUserGh() {
		return userGh;
	}

	public void setUserGh(String userGh) {
		this.userGh = userGh;
	}

	@Override
	public String toString() {
		return "TbUser [userId=" + userId + ", userName=" + userName + ", userXm=" + userXm + ", userPass=" + userPass
				+ ", userPhone=" + userPhone + ", userEmail=" + userEmail + ", userGh=" + userGh + ", lrr=" + lrr
				+ ", lrsj=" + lrsj + ", xgr=" + xgr + ", xgsj=" + xgsj + ", yxBz=" + yxBz + "]";
	}
}
